<template>
  <div >
    <div class="container">
      <div class="back"></div>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
.container {
  width: 600px;
  margin: 30px auto 0;
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  .back {
    width: 300px;
    height: 100px;
    background-size: 50px 50px;
    background-image: linear-gradient(
      45deg,
      black 0,
      black 25%,
      white 0,
      white 50%,
      black 0,
      black 75%,
      white 0,
      white 100%
    );

    -webkit-animation: back-animation 10s infinite linear;
  }
  @-webkit-keyframes back-animation {
    from {
      background-position-x: 0px;
    }
    to {
      background-position-x: 600px;
    }
  }
}
</style>
